package main

import (
	beego "github.com/beego/beego/v2/server/web"
	"travel/appconfig"
	"travel/cache"
	"travel/models"
	_ "travel/routers"
)

func main() {
	//初始化配置
	appconfig.Init()
	//连接Mysql
	models.Init()
	//连接Redis
	cache.Init()
	//运行项目
	beego.Run()
}
